package com.ytjj.quartz.model;

import com.ytjj.qmyx.mall.model.ChannelStatistics;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description TODO
 * @ClassName ChannelStatisticsRequest
 *
 *
 * @Version 1.0
 **/

@Data
public class ChannelStatisticsRequest {
    /**
     * id
     */
    private Integer id;

    /**
     * 日活跃人数
     *
     * @mbg.generated
     */
    private Integer daus;

    /**
     * 新增用户
     *
     * @mbg.generated
     */
    private Integer newUser;

    /**
     * 激活用户
     *
     * @mbg.generated
     */
    private Integer activeUser;

    /**
     * 订单数
     *
     * @mbg.generated
     */
    private Integer orderNum;

    /**
     * 支付订单数
     *
     * @mbg.generated
     */
    private Integer payNum;

    /**
     * 支付率
     *
     * @mbg.generated
     */
    private String payRatio;

    /**
     * 支付金额
     *
     * @mbg.generated
     */
    private BigDecimal payMoney;

    /**
     * 成本
     *
     * @mbg.generated
     */
    private BigDecimal costMoney;

    /**
     * 利润
     *
     * @mbg.generated
     */
    private BigDecimal profit;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 记录时间
     *
     * @mbg.generated
     */
    private Date recordTime;

    /**
     * 来源
     *
     * @mbg.generated
     */
    private String source;

    /**
     * 渠道
     *
     * @mbg.generated
     */
    private String channel;

    /**
     * 额外字段
     *
     * @mbg.generated
     */
    private String extra;

    /**
     * 开始时间
     */
    private String startTime;

    /**
     * 结束时间
     */
    private String endTime;

    /**
     * 订单率
     */
    private String orderRatio;

    /**
     * 客单率
     */
    private String customerRatio;

    /**
     * 地址点击数
     */
    private Integer addressClickNum;

    /**
     * 首次购买人数
     */
    private Integer firstBuyNum;

    public ChannelStatisticsRequest() {
    }

    public ChannelStatisticsRequest(ChannelStatistics channelStatistics) {
        BeanUtils.copyProperties(channelStatistics, this);
    }
}
